<template>
  <div class="main-page">
    <PageSearch
      :search-form-config="searchFormConfig"
      :form-data.sync="formData"
      @searchBtnClick="handleSearch"
    />
    <PageContent
      ref="pageContent"
      :form-data="formData"
      :content-table-config="contentConfig"
    >
      <template #operate>
        <el-button type="text">
          删除
        </el-button>
      </template>
    </PageContent>
  </div>
</template>

<script>
import { contentConfig } from "./config/content.config";
import { searchFormConfig } from "./config/search.config";

export default {
  data() {
    return {
      contentConfig,
      searchFormConfig,
      btnLoading: false,
      formData: {}, // 搜索表单数据
    };
  },
  methods: {
    handleBack() {
      this.$emit("update:showFeeModelRecord", false);
    },
    handleSearch() {
      this.$refs.pageContent.queryTblMain();
    },
  },
};
</script>
